// 我的收藏
import React from 'react';
import { Toast, NavBar } from 'react-vant';
import { useNavigate } from 'react-router-dom';
import { Search } from '@react-vant/icons'
export default function MyCollect() {
    const navigate = useNavigate();
    const handleLeftClick = () => {
        navigate(-1);
    }
    const handlerightClick = () => {
        alert('搜索');
    }
    return <>
        <NavBar
            title='我的收藏'
            leftText='返回'
            onClickLeft={handleLeftClick}
            rightText={<Search fontSize={20} onClick={handlerightClick} />}
        />
    </>
}
